from sqlalchemy import create_engine
from model.testcase import Testcase
from model.task import Task


# 数据库引擎
engine = create_engine("mysql+pymysql://root:Tf63pBq5$JfXSQ@mysql.hogwarts.ceshiren.com:3306/offline_test_platform"
                       , echo=True)

# test_engine = create_engine("sqlite:///test.db", echo=True)

# 建表
Testcase.metadata.create_all(engine)
Task.metadata.create_all(engine)